export const defaultState = {
    selectedSafeWallet: {},
    safeAssetList: [],
    safeQueueList: [],
    safeHistoryList: [],
    selectedSafeAsset: {},
    sendData: {},
    transcationDetail: {},
    readOnly: true
}

export default sectokenMainReducer = (state = defaultState, action) => {
    switch (action.type) {
        case 'setSelectedSafeWallet':
            return { ...state, selectedSafeWallet: action.value };
        case 'setSafeAssetList':
            return { ...state, safeAssetList: action.value };
        case 'setSafeQueueList':
            return { ...state, safeQueueList: action.value };
        case 'setSafeHistoryList':
            return { ...state, safeHistoryList: action.value };
        case 'setSelectedSafeAsset':
            return { ...state, selectedSafeAsset: action.value };
        case 'setSendData':
            return { ...state, sendData: action.value };
        case 'setTranscationDetail':
            return { ...state, transcationDetail: action.value };
        case 'setReadOnly':
            return { ...state, readOnly: action.value };
        default:
            return state
    }
}